<%-- 
    Document   : cadFunc
    Created on : 09/01/2013, 16:05:11
    Author     : User
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form method="post" action="FuncionarioControle?cmd=salvar">
            <fieldset>
                <legend>Cadastro de funcionarios</legend>

                <label>Nome :</label>
                <input type="text" name="nome"/><br />
                <label>Cpf :</label>
                <input type="text" name="cpf"/>
                <label>Rg :</label>
                <input type="text" name="rg"/><br />
                <label>Sexo:</label>
                <input type="radio" name="sexo" value="Feminino"/>
                <input type="radio" name="sexo" value="Masculino"/><br />
                <label>Data Nascimento :</label>
                <input type="text" name="nascimento"/><br />
                <label>Telefone :</label>
                <input type="text" name="telefone"/>
                <label>celular :</label>
                <input type="text"  name="celular"/><br />
                <label>E-Mail :</label>
                <input type="text"  name="email"/><br />
                <label>Cracha :</label>
                <input type="text"  name="cracha"/><br />
                <label>Salario :</label>
                <input type="text"  name="salario"/><br />

              <label>Funcao</label>
                <select name="truno">                       
                    <c:forEach var="turno" items="${requestScope.turnos}">                           
                        <option value="${turno.id}" >
                            ${turno.perfio}                            
                        </option>                        
                    </c:forEach>
                </select><br />             
                <label>Turno</label>
                <select name="funcao">                       
                    <c:forEach var="funcao" items="${requestScope.funcoes}">                           
                        <option value="${funcao.id}" >
                            ${funcao.nome}                            
                        </option>                        
                    </c:forEach>
                </select><br />    
            </fieldset>
            <fieldset>
                <legend>Endereço</legend>
                <label>Rua :</label>
                <input type="text" name="rua"/><br />
                <label>Cep :</label>
                <input type="text"  name="cep"/><br /> 
                <label>Bairro :</label>
                <input type="text" name="bairro"/><br />
                <label>Cidade :</label>
                <input type="text" name="cicade"/><br />
                <label>Estado:</label>
                <input type="text" name="estado"/><br />
                <label>Pais :</label>
                <input type="text" name="pais"/>
                <label>Sigla :</label>
                <input type="text" name="sigla"/><br />                                        
            </fieldset>
            <input type="submit" value="Cadastrar"/>

        </form>
        <a href="menu.jsp">menu</a>
    </body>
</html>
